(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
a__from(X) → cons(mark(X), from(s(X)))
a__sel(0, cons(X, Y)) → mark(X)
a__sel(s(X), cons(Y, Z)) → a__sel(mark(X), mark(Z))
mark(from(X)) → a__from(mark(X))
mark(sel(X1, X2)) → a__sel(mark(X1), mark(X2))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(0) → 0
a__from(X) → from(X)
a__sel(X1, X2) → sel(X1, X2)
Rewrite Strategy: INNERMOST
(1) CpxTrsToCpxRelTrsProof (BOTH BOUNDS(ID, ID) transformation)
Transformed TRS to relative TRS where S is empty.
(2) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
a__from(X) → cons(mark(X), from(s(X)))
a__sel(0, cons(X, Y)) → mark(X)
a__sel(s(X), cons(Y, Z)) → a__sel(mark(X), mark(Z))
mark(from(X)) → a__from(mark(X))
mark(sel(X1, X2)) → a__sel(mark(X1), mark(X2))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(0) → 0
a__from(X) → from(X)
a__sel(X1, X2) → sel(X1, X2)
S is empty.
Rewrite Strategy: INNERMOST
(3) DecreasingLoopProof (EQUIVALENT transformation)
The following loop(s) give(s) rise to the lower bound Ω(n1):
The rewrite sequence
a__sel(s(X), cons(Y, sel(s(X3552_3), cons(X16370_3, X26371_3)))) →+ a__sel(mark(X), a__sel(s(mark(X3552_3)), cons(mark(X16370_3), X26371_3)))
gives rise to a decreasing loop by considering the right hand sides subterm at position [1].
The pumping substitution is [X26371_3 / sel(s(X3552_3), cons(X16370_3, X26371_3))].
The result substitution is [X / mark(X3552_3), Y / mark(X16370_3)].
(4) BOUNDS(n^1, INF)